package com.seabook.store.goodmgr.service;

import java.util.List;

import org.springframework.web.multipart.MultipartFile;

import com.seabook.store.goodmgr.domain.Category;
import com.seabook.store.goodmgr.domain.Product;

public interface ProductService {
    public List<Category> getSubCategories(int categoryId);

    public Category getCategory(int categoryId);

    public void saveProduct(Product product);
    
    public List<Product> getProductByCategory(int categoryId);

    public Product getProductById(int productId);

    public void saveCategory(Category category);

    public boolean deleteCategory(int id);

    public String saveProductImage(MultipartFile file, int productId);
}
